home *** CD-ROM | disk | FTP | other *** search
/ All for Cell Phones: Sony Ericsson / Sony-Ericsson 2004.iso / Java / Deflex ninzya / Deflex.jar / Deflex.class (.txt) < prev    next >
Encoding:
Java Class File  |  2002-03-15  |  1.5 KB  |  42 lines

  1. import javax.microedition.lcdui.Command;
  2. import javax.microedition.lcdui.CommandListener;
  3. import javax.microedition.lcdui.Display;
  4. import javax.microedition.lcdui.Displayable;
  5. import javax.microedition.lcdui.Form;
  6. import javax.microedition.lcdui.TextField;
  7. import javax.microedition.midlet.MIDlet;
  8.  
  9. public class Deflex extends MIDlet implements CommandListener {
  10.    // $FF: renamed from: s Screen
  11.    Screen field_0;
  12.    // $FF: renamed from: f javax.microedition.lcdui.Form
  13.    private Form field_1 = new Form("New high score!");
  14.  
  15.    public Deflex() {
  16.       this.field_1.append(new TextField("Name", (String)null, 8, 0));
  17.       this.field_1.addCommand(new Command("OK", 4, 0));
  18.       this.field_1.setCommandListener(this);
  19.    }
  20.  
  21.    public void startApp() {
  22.       this.field_0 = new Screen(this);
  23.       Display var1 = Display.getDisplay(this);
  24.       var1.setCurrent(this.field_0);
  25.    }
  26.  
  27.    public void pauseApp() {
  28.    }
  29.  
  30.    public void destroyApp(boolean var1) {
  31.    }
  32.  
  33.    public void commandAction(Command var1, Displayable var2) {
  34.       this.field_0.setName(((TextField)((Form)var2).get(0)).getString());
  35.       Display.getDisplay(this).setCurrent(this.field_0);
  36.    }
  37.  
  38.    protected void getName() {
  39.       Display.getDisplay(this).setCurrent(this.field_1);
  40.    }
  41. }
  42.